package com.whmskj.xjlhbc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.whmskj.xjlhbc.domain.Bczl02jdjlb;
import com.whmskj.xjlhbc.mapper.Bczl02jdjlbMapper;
import com.whmskj.xjlhbc.service.IBczl02jdjlbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 降等子记录表Service实现类
 */
@Service
public class Bczl02jdjlbServiceImpl extends ServiceImpl<Bczl02jdjlbMapper, Bczl02jdjlb> implements IBczl02jdjlbService {
    
    @Autowired
    private Bczl02jdjlbMapper bczl02jdjlbMapper;
    
    @Override
    public List<Bczl02jdjlb> getByMainId(Long mainId) {
        return bczl02jdjlbMapper.selectByMainId(mainId);
    }
    
    @Override
    public List<Bczl02jdjlb> getByMainIdAndType(Long mainId, String degradationType) {
        return bczl02jdjlbMapper.selectByMainIdAndType(mainId, degradationType);
    }
}
